package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.common.entity.QueryPageBean;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SetmealMapper {
//    @Insert("insert into t_setmeal (name, code, helpCode, sex, age, price, remark, attention, img) VALUES (#{name},#{code},#{helpCode},#{sex},#{age},#{price},#{remark},#{attention},#{img})")
    void addsetMeal(Setmeal setmeal);

    Page<Setmeal> pageQuery(QueryPageBean queryPageBean);

    @Select("select * from t_setmeal where id=#{id}")
    Setmeal getById(Integer id);

    void editsetmeal(Setmeal setmeal);

}
